// Created by lifei on 2020/7/20--9:24.
<template>
    <div >
<!--        基本信息-->
        <baseData ref="baseData" :projectId="projectId" @handleControlOwnership="handleControlOwnership"></baseData>

<!--        物业权属信息-->
        <property-ownership ref="belong" ></property-ownership>

<!--        移交信息-->
        <transfer-data ref="transfer" ></transfer-data>
        <!--        土地信息-->
        <div class="resource-manage" v-if="!isAdd">
            <div class="card-box">
                <div class="card-title">土地信息</div>
                <el-form
                    ref="landInfo"
                    class="form-wrap"
                    label-position="top"
                    size="small"
                    :model="landInfo">
                    <el-form-item label="宗地号">
                        <span class="in_txt">{{landInfo.parcelNum}}</span>
                    </el-form-item>
                    <el-form-item label="宗地面积(m²)">
                        <span class="in_txt">{{landInfo.parcelArea}}</span>
                    </el-form-item>
                    <el-form-item label="土地用途">
                        <span class="in_txt">{{getCardTypeValue(landInfo.landUse,landUses)}}</span>
                    </el-form-item>
                   <!-- <el-form-item label="土地合同号">
                        <span class="in_txt">{{landInfo.landContractNum}}</span>
                    </el-form-item>-->
                    <el-form-item label="地址" class="full">
                        <span class="in_txt">{{landInfo.addressInfo}}</span>
                    </el-form-item>
                </el-form>
            </div>
        </div>
<!--        附件信息-->
        <div class="resource-manage">
            <div class="card-box">
                <div class="card-title">上传文件</div>
                <div class="margin-box">
                    <v-upload
                        type="image"
                        ref="propertyFiles"
                        :busId="id"
                        :modelType="modelType"
                        @onSuccess="onSuccess"
                        isShowFileList
                        :isView="false"
                        :autoLoadFiles="false"
                        multiple
                        v-model="uploadFileList"/>
                </div>
                <div class="margin-box">
                    <v-upload
                        type="video"
                        ref="propertyFiles"
                        :busId="id"
                        :modelType="modelType"
                        @onSuccess="onSuccess"
                        isShowFileList
                        :isView="false"
                        :autoLoadFiles="false"
                        multiple
                        v-model="uploadFileList"/>
                </div>
                <div class="margin-box">
                    <v-upload
                        ref="propertyFiles"
                        :busId="id"
                        :modelType="modelType"
                        @onSuccess="onSuccess"
                        isShowFileList
                        :isView="false"
                        multiple
                        v-model="uploadFileList"/>
                </div>
            </div>
        </div>
        <div class="resource-manage">
            <div class="card-box">
                <!--<el-form size="small" class="but_form">
                    <el-form-item class="full">
                        <el-button type="primary" @click="submitForm()" class="pro-btn">保存</el-button>
                    </el-form-item>
                </el-form>-->
                <el-button type="primary" v-throttle="[submitForm]" class="pro-btn">保存</el-button>
            </div>
        </div>

    </div>
</template>

<script src="./property_form.js"></script>
<style scoped lang="scss">
    @import "./property_form.scss";
</style>

